package com.ls.mysql.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @Author Maple.Chen
 * @Description  @Configuration注解告诉springboot这是一个配置类，等同于ApplicationContext.xml
 * @Date 12:58 2020/5/10
 **/
@Configuration
//@EnableWebMvc //全面接管springboot对mvc的自动配置
public class ApplicationContextConfig {

    @Bean
    public LocaleResolver localeResolver(){
        return new MyLocaleResolver();
    }


}
